package si.yun.service;

import si.yun.entity.R;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

/**
 * @program: ThinkManage
 * @description:
 * @author: 崔晓晨
 * @create: 2021-12-10 13:42
 **/
public interface WechatPayService {


    /**
     * @Description: 微信支付统一下单
     */
    R unifiedOrder(Map<String, Object> map, HttpServletRequest request) ;

    /**
     * @Description: 退款
     */
    R refund(String orderNo, double amount, String refundReason);

    /**
     * @Description: 订单支付异步通知
     * @param notifyStr: 微信异步通知消息字符串
     */
    String notify(String notifyStr) throws Exception;
}
